package com.atguigu.boot.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedList;
import java.util.List;


@RestController
public class HelloController {
    @ResponseBody
    @RequestMapping("/hello")
    public String handle01(){
        return "Hello,Spring Boot2!";
    }
    @RequestMapping("/login")
    public List<String> login(){
        List<String> list =new LinkedList<>();
        list.add("张天乐");
        list.add("加油");
        return list;
    }
}
